package com.ujiuye.demo;

import com.ujiuye.entity.Student;
import com.ujiuye.util.PackageUtil;

import java.util.List;

public interface StudentDao {
    List<Student> getAllS();
    int getCountRows();
    List<Student> getStudentByPage(PackageUtil p);
    int addStudent(Student stu);
    int delStudent(int sid);
    Student getStudentById(int sid);
    int editStudent(Student stu);
    int getCountRowsBySname(String sname);
    List<Student> getStudentBySname(PackageUtil pu,String sname);
}
